import Vue from 'vue'
import Vuex from 'vuex'
import userModule from './modules/user.js'
import CreatState from 'vuex-persistedstate'

Vue.use(Vuex)

export default new Vuex.Store({
  // 实现持久化储存token值
  plugins: [CreatState()],
  modules: {
    user: userModule
  }
})
